/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ElectricGrill {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050033';
    }

    get categoryName() {
        return '\u70e4\u7089';
    }

    getBottomTemp(params) {
        return command({
            method: 'getBottomTemp',
            methodId: 'pgh0u2d1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCookTime(params) {
        return command({
            method: 'getCookTime',
            methodId: 'pdN7Vz8W',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentBottomTemp(params) {
        return command({
            method: 'getCurrentBottomTemp',
            methodId: 'p0cr5n09',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTopTemp(params) {
        return command({
            method: 'getCurrentTopTemp',
            methodId: 'pBTQ0Mcn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'p3deZIHz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'phEqY8Po',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pkpDAEFI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTopTemp(params) {
        return command({
            method: 'getTopTemp',
            methodId: 'ptRSxWnR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'pz93w9hE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBottomTemp(params) {
        return command({
            method: 'setBottomTemp',
            methodId: 'peH3bdDV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCookTime(params) {
        return command({
            method: 'setCookTime',
            methodId: 'pGoxpN6b',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'p1vZQToq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'pZgRrvax',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'ppAX3ZT3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pDrhgJGk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTopTemp(params) {
        return command({
            method: 'setTopTemp',
            methodId: 'pUPQLLjG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ElectricGrill;
